package com.cwl.base.day01;

/**
 * @program: java_base
 * @description: 测试常量
 * @author: ChenWenLong
 * @create: 2019-11-05 14:45
 **/
public class TestConstant {

    public static void main(String[] args) {
        int age = 18;

        final  String NAME = "ChenWenLong";

        final double PI = 3.14;
        // PI = 3.15; //编译错误，不能再被赋值！
        double r = 4;
        double area = PI * r * r;
        double circle = 2 * PI * r;
        System.out.println("area = " + area);
        System.out.println("circle = " + circle);

    }
}
